package cn.ccit.iservers;

import java.util.ArrayList;
import java.util.List;

import cn.ccit.entites.record.DishOrderRecordItem;
/**
 * 
 * @author wanghao
 *	点菜记录明细（临时表明细）
 */
public interface IDishOrderRecordItemServers {
	public boolean addDishOrderRecordItem(DishOrderRecordItem cdRecord);//增加明细
	public boolean removeDishOrderRecordItem(DishOrderRecordItem cdRecord);//移除
	public boolean changeDishOrderRecordItemInfo(DishOrderRecordItem cdRecord);//修改
	public List<DishOrderRecordItem> getSomeDishOrderRecordItems(int start,int limit);//获取一定数量
	public DishOrderRecordItem searchDishOrderRecordItemByID(int id);//搜索通过id
	public List<DishOrderRecordItem> searchDishOrderRecordItemByYear(String year);//通过年
	public List<DishOrderRecordItem> searchDishOrderRecordItemByMonth(String month);//通过月
	public List<DishOrderRecordItem> searchDishOrderRecordItemByDate(String date);//通过日期
	public List<DishOrderRecordItem> searchDishOrderRecordItemBySerialsNumber(Long SerialsNumber);//通过流水号

	public boolean batchAddDishOrderRecordItem(List<DishOrderRecordItem> list);//增加明细

	public boolean changeDataEnum(DishOrderRecordItem cdRecord,String reason);

}
